package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;

import org.apache.poi.ss.formula.functions.T;
import top.tangyh.basic.base.entity.Entity;
import top.tangyh.lamp.care.common.YcTreeNode;

import java.util.List;


/**
 * <p>
 * 实体类
 * 压疮评估项目字典表
 * </p>
 *
 * @author zqb
 * @date 2024-07-16 14:57:44
 */
@Data
//@NoArgsConstructor
//@AllArgsConstructor
//@ToString(callSuper = true)
//@Accessors(chain = true)
//@EqualsAndHashCode(callSuper = true)
//@Builder
@TableName("b_yc_dad_dict")
public class BYcDadDict    implements YcTreeNode<BYcDadDict> {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer dadId;

    /**
     * 评估项目代码
     */
    private String dadCode;
    /**
     * 评估项目名称
     */
    private String dadName;
    /**
     * 评估值
     */
    private Integer dadScore;

    private Integer dadSupid;

    private Integer dadSort;

//    @TableId(type = IdType.AUTO)
//    private Integer id;
//
//
//    private static final long serialVersionUID = 1L;
//
//    /**
//     * 评估项目id
//     */
//    @TableField(value = "dad_id", condition = EQUAL)
//    @Schema(description = "评估项目id")
//    private Long dadId;
//    /**
//     * 评估项目代码
//     */
//    @TableField(value = "dad_code", condition = LIKE)
//    @Schema(description = "评估项目代码")
//    private String dadCode;
//    /**
//     * 评估项目名称
//     */
//    @TableField(value = "dad_name", condition = LIKE)
//    @Schema(description = "评估项目名称")
//    private String dadName;
//    /**
//     * 评估值
//     */
//    @TableField(value = "dad_score", condition = LIKE)
//    @Schema(description = "评估值")
//    private String dadScore;
//    /**
//     * 父id
//     */
//    @TableField(value = "dad_supid", condition = EQUAL)
//    @Schema(description = "父id")
//    private Long dadSupid;
//    /**
//     * 排序
//     */
//    @TableField(value = "dad_sort", condition = EQUAL)
//    @Schema(description = "排序")
//    private Integer dadSort;


    @TableField(exist = false)
    private List<BYcDadDict> children;



}
